<ol class="breadcrumb">
  <li><a href="/ems/store_staffs">员工管理</a></li>
  <li class="active">信息修改</li>
</ol>

<div id="app-container" class="container js-staff-edit" myapp="STORE_WECHAT_INFOS_EDIT">

  <div class="app">
     <div class="app-inner clearfix">
         <table id="wechat_table">
           <%= notice %>
          <tbody>
            <%= form_for @staff, url: ems_store_staff_path do |f| %>
              <tr class="">
                <td class="set-wechat-title">
                  <label for="">姓名:</label>
                </td>
                <td>
                  <%= f.text_field :full_name, required: true, class: "ttd" %>
                </td>
              </tr>
              <tr class="">
                <td class="set-wechat-title">
                  <label for="">手机号:</label>
                </td>
                <td>
                  <%= f.text_field :phone_number, placeholder: "用来登录！", required: true, class: "ttd" %>
                </td>
              </tr>

              <tr class="">
                <td class="set-wechat-title">
                  <label for="">员工编号:</label>
                </td>
                <td>
                  <%= f.text_field :numero, placeholder: "", required: false, class: "ttd" %>
                </td>
              </tr>

              <tr>
                <td class="set-wechat-title"><label for="">部门:</label></td>
                <td>
                  <select name="store_staff[store_department_id]" class="ttd" style="background-color: #fff;" id="is_used">
                    <%= options_from_collection_for_select(@departments, 'id', 'name', @staff.store_department_id) %>
                  </select>
                </td>
              </tr>

              <tr>
                <td class="set-wechat-title"><label for="">职位:</label></td>
                <td>
                  <select name="store_staff[store_position_id]" class="ttd" style="background-color: #fff;" id="is_used">
                    <%= options_from_collection_for_select(@positions, 'id', 'name', @staff.store_position_id ) %>
                  </select>
                </td>
              </tr>

              <tr>
                <td class="set-wechat-title"><label for="">状态:</label></td>
                <td>
                  <select name="store_staff[status]" class="ttd" style="background-color: #fff;" id="is_used">
                    <option value="1" <%= selected=true if @staff.status == 1 %> >正式员工</option>
                    <option value="0" <%= selected=true if @staff.status == 0 %> >试用期</option>
                  </select>
                </td>
              </tr>

              <tr class="">
                <td class="set-wechat-title">
                  <label for="">入职时间:</label>
                </td>
                <td>
                  <%= f.text_field :employeed_at, value: @staff.format_employeed_at, required: false, class: "ttd dateTimePicker" %>
                </td>
              </tr>

              <tr class="">
                <td class="set-wechat-title">
                  <label for="">身份证:</label>
                </td>
                <td>
                  <%= f.text_field :idcard, required: false, class: "ttd" %>
                </td>
              </tr>

              <tr class="">
                <td colspan="2">
                  <%= f.submit '确定',class: "btn btn-crud position" %>
                </td>
              </tr>
            <% end %>

          </tbody>
        </table>
      </div>
  </div>
